//
//  MVContents.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/15
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MVContents.h"
#import "MVTableList.h"

@implementation MVContents
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray <MVTableList *> *listArray = [NSMutableArray array];
        NSArray *valueArr = value;
        for (NSDictionary *dic in valueArr) {
            MVTableList *list = [MVTableList modelWithDic:dic];
            [listArray addObject:list];
        }
        _list = listArray;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [MVTableList class]};
}

@end
